﻿<%@ Page Language="C#" MasterPageFile="~/impresiones/MasterImpresiones.master" AutoEventWireup="true" CodeFile="OrdenDeTrabajo.aspx.cs" Inherits="impresiones_OrdenDeTrabajo" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 600px">
        <tr>
            <td align="left" colspan="1" style="width: 100px; text-align: right" valign="top">
                Numero OT :</td>
            <td align="left" colspan="1" style="width: 600px" valign="top">
                <asp:Label ID="lblNumero" runat="server" Width="100%"></asp:Label></td>
        </tr>
        <tr>
            <td align="left" colspan="1" style="width: 100px; text-align: right" valign="top">
                Cliente :<br />
            </td>
            <td align="left" colspan="1" style="width: 600px; text-align: left" valign="top">
                <asp:Label ID="lblCliente" runat="server" Width="100%"></asp:Label></td>
        </tr>
        <tr>
            <td align="left" colspan="1" style="width: 100px; text-align: right" valign="top">
                Descripcion :</td>
            <td align="left" colspan="1" style="width: 600px; text-align: left" valign="top">
                <asp:Label ID="lblDescripcion" runat="server" Height="100%" Width="100%"></asp:Label></td>
        </tr>
        <tr>
            <td align="left" colspan="1" style="width: 100px; text-align: right" valign="top">
                Monto :</td>
            <td align="left" colspan="1" style="width: 600px; text-align: left" valign="top">
                <asp:Label ID="lblMonto" runat="server" Width="100%"></asp:Label></td>
        </tr>
        <tr>
            <td align="left" colspan="2" style="text-align: left" valign="top">
                <strong>Productos Asociados<br />
                </strong>
            </td>
        </tr>
        <tr>
            <td align="left" colspan="2" style="text-align: left" valign="top">
                <asp:DataList ID="dtlDetalleOrdenDeTrabajo" runat="server" Width="100%">
                    <HeaderTemplate>
                        <table class="HeaderStyle" width="100%">
                            <tr>
                                <td style="width: 40%; text-align: left">
                                    Producto</td>
                                <td style="width: 20%; text-align: left">
                                    Cantidad</td>
                                <td style="width: 20%; text-align: left">
                                    Despachado</td>
                                <td style="width: 20%; text-align: left">
                                    Monto</td>
                            </tr>
                        </table>
                        <hr />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table style="border-right-style: none; border-right-color: black" width="100%">
                            <tr>
                                <td style="width: 40%; text-align: left">
                                    <asp:Label ID="lblProducto" runat="server" Text='<%# Eval("Producto.Descripcion") %>'></asp:Label></td>
                                <td align="right" style="width: 20%; text-align: right">
                                    <asp:Label ID="lblCantidad" runat="server" Text='<%# Eval("Cantidad") %>'></asp:Label></td>
                                <td align="right" style="width: 20%; text-align: right">
                                    <asp:Label ID="lblCantidadDespachada" runat="server" Text='<%# Eval("Despachado") %>'></asp:Label></td>
                                <td align="right" style="width: 20%; text-align: right">
                                    <asp:Label ID="lblMonto" runat="server" Text='<%# Eval("Monto") %>'></asp:Label></td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <SeparatorStyle BorderColor="Black" BorderStyle="Solid" />
                </asp:DataList>&nbsp;
                <hr />
            </td>
        </tr>
        <tr>
            <td align="left" colspan="2" style="text-align: left" valign="top">
                <strong>
                    <br />
                    Gastos Asociados</strong></td>
        </tr>
        <tr>
            <td align="left" colspan="2" style="text-align: left" valign="top">
                <asp:DataList ID="dtlGastos" runat="server" Width="100%">
                    <SeparatorStyle BorderColor="Black" BorderStyle="Solid" />
                    <HeaderTemplate>
                        <table style="border-right-style: none; border-right-color: black" width="100%">
                            <tr>
                                <td style="width: 40%; text-align: center">
                                    Detalle</td>
                                <td align="right" style="width: 20%; text-align: center">
                                    Documento</td>
                                <td align="right" style="width: 20%; text-align: center">
                                    Nº Documento</td>
                                <td align="right" style="width: 20%; text-align: center">
                                    Monto</td>
                            </tr>
                        </table>
                        <hr />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table style="border-right-style: none; border-right-color: black" width="100%">
                            <tr>
                                <td style="width: 40%; text-align: left">
                                    <asp:Label ID="lblDetalle" runat="server" Text='<%# Eval("Detalle") %>'></asp:Label></td>
                                <td align="right" style="width: 20%; text-align: right">
                                    <asp:Label ID="lblDocumento" runat="server" Text='<%# Eval("Documento") %>'></asp:Label></td>
                                <td align="right" style="width: 20%; text-align: right">
                                    <asp:Label ID="lblNumeroDocumento" runat="server" Text='<%# Eval("NumeroDocumento") %>'></asp:Label></td>
                                <td align="right" style="width: 20%; text-align: right">
                                    <asp:Label ID="lblMonto" runat="server" Text='<%# Eval("Monto") %>'></asp:Label></td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
                <hr />
            </td>
        </tr>
        <tr>
            <td align="left" colspan="2" style="text-align: right" valign="top">
                Costo :
                <asp:Label ID="lblCosto" runat="server"></asp:Label></td>
        </tr>
    </table>
</asp:Content>

